package session09.compent;

import javax.swing.*;

public class JButtonPanel extends JButton {

    //不需要new一个Button
    public JButtonPanel(String filename, int x, int y) {
        this.setIcon(new ImageIcon(filename));
        this.setBounds(x, y, 140, 50);
    }
}
